package test;

import entity.TreeStructure;
import example.ActTypeNodeVo;
import utile.TreeHelper;

import java.util.List;

/**
 * @Description:
 * @Author: ld
 * @Date: 2021-01-29 09:55
 */
public class test {

    public void testConvertToObjList(List<TreeStructure<ActTypeNodeVo>> inList){
        //新建的需要输出普通无children列表

        List<TreeStructure<ActTypeNodeVo>> tileStructures = TreeHelper.convertToObjList(inList);
        tileStructures.forEach(System.out::println);
    }

    public void testCovertToTreeList(List<ActTypeNodeVo> list){
        List<TreeStructure<ActTypeNodeVo>> list1 = TreeHelper.convertToTreeList(list);

        list1.forEach(System.out::println);
    }

}
